import request from '@/utils/request'
export default {
  getTeacherListPage(TabPtdetailTailPatientVO) {
    return request({
      url: `/report/teacher/list`,
      method: 'post',
      data: TabPtdetailTailPatientVO
    })
  },
  getDropDownCheckName() {
    return request({
      url: `/report/teacher/getDropDownCheckName`,
      method: 'get'
    })
  },
  // 获取检查类型
  getDropDownModelName() {
    return request({
      url: `/report/teacher/getDropDownModelName`,
      method: 'get'
    })
  },
  // 获取显像剂
  // getDropDownCheckMachine
  getDropDownXxj() {
    return request({
      url: `/report/teacher/getDropDownXxj`,
      method: 'get'
    })
  },
  // 获取报告医生
  getBgDoctorDropDown() {
    return request({
      url: `/report/teacher/AllBgDoctor`,
      method: 'get'
    })
  },
  // 获取审核医生
  getShDoctorDropDown() {
    return request({
      url: `/report/teacher/AllShDoctor`,
      method: 'get'
    })
  },
  // 获取复审医生
  getFsDoctorDropDown() {
    return request({
      url: `/report/teacher/AllFsDoctor`,
      method: 'get'
    })
  },
  // 获取院落
  getDropDownBranch() {
    return request({
      url: `/report/teacher/getBranch`,
      method: 'get'
    })
  },
  getPatientPro(ptdeId) {
    return request({
      url: `/report/teacher/getPatientPro/` + ptdeId,
      method: 'get'
    })
  },
  getDropDownState() {
    return request({
      url: `/report/teacher/getDropDownState`,
      method: 'get'
    })
  },
  // 高级查询
  //
  getDropDownUnitType() {
    return request({
      url: `/report/teacher/getDropDownUnitType`,
      method: 'get'
    })
  },
  getDetails(ptdeId) {
    return request({
      url: `/report/teacher/patientReport/` + ptdeId,
      method: 'get'
    })
  },
  getSurvey(patientId) {
    return request({
      url: `/report/teacher/getSurvey/` + patientId,
      method: 'get'
    })
  },
  getPatient(ptdeId) {
    return request({
      url: `/report/teacher/getPatient/` + ptdeId,
      method: 'get'
    })
  },
  updatePatient(PtPatientVo) {
    return request({
      url: `/report/teacher/update`,
      method: 'put',
      data: PtPatientVo
    })
  },
  getTemplate() {
    return request({
      url: `/report/teacher/template`,
      method: 'get'
    })
  },
  // 获取截图
  //   images
  getImgs(studyInsta) {
    return request({
      url: `/api/tspet/imagesMap?StudyInsta=${studyInsta}`,
      method: 'get'
    })
  },
  // 试做-获取序列(下半部分)
  getSequence1(studyInsta) {
    return request({
      url: `/api/tspet/getStudyInsta/` + studyInsta,
      method: 'get'
    })
  },
  // 上半部分
  getSequence(userName) {
    return request({
      url: `/report/teacher/getSequence/` + encodeURIComponent(userName),
      method: 'get'
    })
  },
  // 试做-发送请求,调用融合软件(本地)
  getResponseStatus(msg) {
    return request({
      url: `/api/tspet/openseries/`,
      method: 'post',
      data: msg
    })
  },
  getHistory(patientId, ptdeId) {
    return request({
      url: `/report/teacher/getHistory/` + patientId + `/` + ptdeId,
      method: 'get'
    })
  },
  // 历史名字查询
  getHistorybyname(ptName) {
    return request({
      url: `/report/teacher/getHistoryByPtName/` + ptName,
      method: 'get'
    })
  },
  // 历史检查号查询
  getHistorybycheckid(ptdtCheckCode) {
    return request({
      url: `/report/teacher/getHistoryByCheckCode/` + ptdtCheckCode,
      method: 'get'
    })
  },
  getTemplateInfo(id, parentId) {
    return request({
      url: `/report/teacher/templateInfo/` + id + '/' + parentId,
      method: 'get'
    })
  },
  releases(ClassStudentListVo) {
    return request({
      url: `/report/teacher/release/`,
      method: 'post',
      data: ClassStudentListVo
    })
  },
  getClassList() {
    return request({
      url: `/report/teacher/classList`,
      method: 'get'
    })
  },
  getStudentList(deptId) {
    return request({
      url: `/report/teacher/classStudentList/` + deptId,
      method: 'get'
    })
  },
  getStudentReport(studentReportReqVo, queryParams) {
    return request({
      url: `/report/teacher/studentReportListPage`,
      params: queryParams,
      method: `post`,
      data: studentReportReqVo
    })
  },
  getSelectStatus() {
    return request({
      url: `/report/teacher/completeStatus`,
      method: `get`
    })
  },
  getReport(reportId) {
    return request({
      url: `report/teacher/commentReport/` + reportId,
      method: `get`
    })
  },
  insertComment(report, status) {
    return request({
      url: `report/teacher/score/` + status,
      method: `post`,
      data: report
    })
  },
  updateComment(report) {
    return request({
      url: `report/teacher/update/score/`,
      method: `post`,
      data: report
    })
  },
  // 删除图片
  deleteimg(deleteimgList) {
    return request({
      url: `api/tspet/delImages`,
      method: `delete`,
      data: deleteimgList
    })
  },
  // 模板添加
  mbappend(mbappendList) {
    return request({
      url: `/report/teacher/addMyTemplate`,
      method: `post`,
      data: mbappendList
    })
  },
  // 模板移除
  mbremove(mbremoveList) {
    return request({
      url: `/report/teacher/delMyTemplate`,
      method: `post`,
      data: mbremoveList
    })
  },
  // 模板保存
  mbsave(mbsaveList) {
    return request({
      url: `/report/teacher/updateMyTemplate`,
      method: 'put',
      data: mbsaveList
    })
  },
  // 改变检查状态
  changeCheckStatus(qtchangeList) {
    return request({
      url: `/report/teacher/changePtInfo`,
      method: 'post',
      data: qtchangeList
    })
  },
  // 改变报告医生
  changeBgDoctor(qtchangeList) {
    return request({
      url: `/report/teacher/changePtInfo`,
      method: 'post',
      data: qtchangeList
    })
  },
  // 改变审核医生
  changeShDoctor(qtchangeList) {
    return request({
      url: `/report/teacher/changePtInfo`,
      method: 'post',
      data: qtchangeList
    })
  },
  // 改变复审医生
  changeShDoctor2(qtchangeList) {
    return request({
      url: `/report/teacher/changePtInfo`,
      method: 'post',
      data: qtchangeList
    })
  },
  // 改变院落
  changeBranch(qtchangeList) {
    return request({
      url: `/report/teacher/changePtInfo`,
      method: 'post',
      data: qtchangeList
    })
  },
  // 提取医生及时间获取
  getDoctorAndTime(Id) {
    return request({
      url: `report/teacher/timeAndDoctor/` + Id,
      method: 'get'
    })
  },
  // 报告提取
  reportExtract(data) {
    return request({
      url: `/report/teacher/ExtractReport`,
      method: 'post',
      data: data
    })
  },
  // 撤销提取
  revokeExtraction(data) {
    return request({
      url: `/report/teacher/returnPtdStatus`,
      method: 'post',
      data: data
    })
  },
  // 撤回审核
  backCommited(data) {
    return request({
      url: `/report/teacher/backCommited`,
      method: 'post',
      data: data
    })
  },
  // 撤回复审
  backCommited2(data) {
    return request({
      url: `/report/teacher/backCommited2`,
      method: 'post',
      data: data
    })
  },
  // 提交审核
  submitExamine(data) {
    return request({
      url: `/report/teacher/submitCommited`,
      method: 'post',
      data: data
    })
  },
  // 审核提取
  reviewExtract(data) {
    return request({
      url: `/report/teacher/ExtractSHReport/`,
      method: 'post',
      data: data
    })
  },
  // 撤销审核
  revokeReview(data) {
    return request({
      url: `/report/teacher/returnPtdStatus2/`,
      method: 'post',
      data: data
    })
  },
  // 审核通过
  reviewApprove(data) {
    return request({
      url: `/report/teacher/ReportApproved/`,
      method: 'post',
      data: data
    })
  },
  // 转审审核医生
  changeReviewer1(data) {
    return request({
      url: `/report/teacher/changeShDoctor`,
      method: 'post',
      data: data
    })
  },
  // 转审复审医生
  changeReviewer2(data) {
    return request({
      url: `/report/teacher/changeShDoctor2`,
      method: 'post',
      data: data
    })
  },
  // 提交复审
  submitReexamine(data) {
    return request({
      url: `/report/teacher/submitCommited2/`,
      method: 'post',
      data: data
    })
  },
  // 复审提取
  reexamineExtract(data) {
    return request({
      url: `/report/teacher/changePtdStatus3/`,
      method: 'post',
      data: data
    })
  },
  // 撤销复审
  revokeReexamine(data) {
    return request({
      url: `/report/teacher/returnPtdStatus3/`,
      method: 'post',
      data: data
    })
  },
  // 复审通过
  reexamineApprove(data) {
    return request({
      url: `/report/teacher/reportApproved2/`,
      method: 'post',
      data: data
    })
  },

    // 获取检查列表下方树形结构
    getTreeList(ptdeId2){
      return request({
        url: `/api/tspet/getPatientMessage/` + encodeURIComponent(ptdeId2),
        method: 'get'
      })
    },
  
    // 获取检查列表下侧图片
    getCheckListImg(imgName) {
      return request({
        url: `/api/tspet/Oneimages/` + encodeURIComponent(imgName),
        method: 'get'
      }) 
    },
  
    //获取所有图像
    getAllImgs(ptdeId2){
      return request({
        url: `/api/tspet/imagesMap2/` + encodeURIComponent(ptdeId2),
        method: 'get'
      })
    },
  
    //获取图像打印
    getPrints(data){
      return request({
        url: `/api/tspet/printWord`,
        method: 'post',
        data: data
      })
    },

    printTextTemplate(ptdeId2) {
      return request({
        url: `/api/tspet/printWirtingWord/` + encodeURIComponent(ptdeId2),
        method: 'post'
      })
    },

    uploadImage(formData) {
      return request({
        url: `/api/tspet/uploadImage`,
        method: 'post',
        data: formData,
        headers: {
          'Content-Type': 'multipart/form-data',
        }
      });
    },

    getCheckDate(ptdeId){
      return request({
        url: `/api/tspet/getPtdtCheckDate/` + ptdeId,
        method: 'get',
      })
    },

    printWord(data){
      return request({
        url: `/api/tspet/printWord`,
        method: 'post',
        data: data
      })
    },

    //历史页面序列
    hisSequence(data){
      return request({
        url: `/report/teacher/getSequenceByname`,
        method: 'post',
        data: data
      })
    },

    //序列页面
    sequence(data){
      return request({
        url: `/api/tspet/uploadImage`,
        method: 'post',
        data: data
      })
    },

    //获取随访数据
    getFollow(ptdeId){
      return request({
        url: `/api/tspet/getFollow/` + ptdeId,
        method: 'get'
      })
    },

    //保存随访数据
    serveFollow(data){
      return request({
        url: `/api/tspet/updateFollow`,
        method: 'post',
        data: data
      })
    },

    //获取问诊数据
    getInterview(ptdeId){
      return request({
        url: `/api/tspet/getwzdata/` + ptdeId,
        method: 'get'
      })
    },

    //保存问诊数据
    serveInterview(data){
      return request({
        url: `/api/tspet/updatewzdata`,
        method: 'post',
        data: data
      })
    },

    //删除图片
    deleteEditImg(imageIdList){
      return request({
        url: `/api/tspet/deleteImage`,
        method: 'post',
        data: imageIdList
      }) 
    },
    
    //获取序列 -- 检查号一排
    getSequence3(data) {
      return request({
        url: `/report/teacher/getSequenceByptdeid`,
        method: 'post',
        data: data
      })
    },

    //更改图片描述
    changeImgDes(data){
      return request({
        url: `/api/tspet/setImageDescription`,
        method: 'post',
        data: data
      })
    },

    getCheckMachineList(){
      return request({
        url: `/api/tspet/getCheckMachineList`,
        method: 'get'
      })
    }
}



